package juego.graficos;

import java.awt.*;
import javax.swing.JPanel;

public class JPanelExtended extends JPanel{
	private Image image;
	
	public JPanelExtended(Image image)
	{
		super();
		this.image = image;
	}
	
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		if(image != null)
			g.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), this);
	}
}
